package com.tang.lts.remoting.protocol.command;

import java.util.Map;

/**
 * @author Tang
 * @classname AbstractRemoteCommandBody
 * @description [  ]
 * @date 2022/5/26 15:59
 */
public abstract class AbstractRemoteCommandBody implements RemoteCommandBody {

    long timestamp = System.currentTimeMillis();

    String nodeGroup;

    String nodeType;

    Map<String, Object> extParams;

    @Override
    public void checkFields() {

    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public String getNodeGroup() {
        return nodeGroup;
    }

    public void setNodeGroup(String nodeGroup) {
        this.nodeGroup = nodeGroup;
    }

    public String getNodeType() {
        return nodeType;
    }

    public void setNodeType(String nodeType) {
        this.nodeType = nodeType;
    }

    public Map<String, Object> getExtParams() {
        return extParams;
    }

    public void setExtParams(Map<String, Object> extParams) {
        this.extParams = extParams;
    }
}